package com.cpp.pojo.vo.chapter;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cpp.pojo.pojo.Knowledge;
import com.cpp.pojo.pojo.Question;
import com.cpp.pojo.vo.question.QuestionVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 用来把ai生成的备课内容，以章节为单位，返回给前端，让老师微调的类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ChapterConfirmVO implements Serializable {
    //章节总数
    private Integer chapterCount;
    //章节id
    private Long chapterId;
    //章节标题
    private String title;
    //章节内容简介
    private String content;
    //预计学习时长
    private Integer duration;
    //章节排序
    private Integer sort;
    //知识点
    List<KnowledgeVO> knowledges;
    //实训练习
    List<QuestionVO> questions;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class QuestionVO {
        //题目id
        private Long questionId;
        //题目内容（含题干、选项等）
        private String content;
        //难度：1`简单`/2`中等`/3`困难`
        private Integer difficulty;
        //正确答案
        private String answer;
        //答案解析
        private String analysis;
    }
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class KnowledgeVO {
        //知识点id
        private Long knowledgeId;
        //知识点名称
        private String name;
        //知识点内容
        private String content;
    }
}
